package com.itheima.a02oopextendsdemo2;

public class Test {
    public static void main(String[] args) {
        //创建一个哈士奇对象
        Husky h = new Husky();
        h.eat();
        h.drink();
        h.watchHouse();
        h.BreakHouse();
        System.out.println("-----------------");
        //创建一个沙皮狗对象
        ShaPi s = new ShaPi();
        s.eat();
        s.drink();
        s.watchHouse();
        System.out.println("-----------------");
        //创建一个中华田园犬对象
        ChineseDog c = new ChineseDog();
        c.eat();
        c.drink();
        c.watchHouse();
        System.out.println("-----------------");

    }
}
